package com.du.cloud.service.admin.service.impl;

import com.du.cloud.service.admin.api.model.entity.SysRule;
import com.du.cloud.service.admin.mapper.SysRuleMapper;
import com.du.cloud.service.admin.service.SysRuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Desc:
 * Author: dushuang
 * Date: 2020/5/26
 **/
@Service
public class SysRuleServiceImpl implements SysRuleService {

    @Resource
    private SysRuleMapper sysRuleMapper;

    @Override
    public List<SysRule> findUserRule(Integer userId) {
        return sysRuleMapper.findUserRule(userId);
    }
}
